package com.lingnan.wanxiangxinxun.service;

import com.lingnan.wanxiangxinxun.entity.dto.query.User_queryDTO;
import com.lingnan.wanxiangxinxun.entity.po.AuthorApplication;
import com.lingnan.wanxiangxinxun.entity.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingnan.wanxiangxinxun.entity.vo.common.PageVO;
import com.lingnan.wanxiangxinxun.entity.vo.common.Result;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author swl
 * @since 2025-03-13
 */
public interface IUserService extends IService<User> {


    PageVO<User> getAllInPage(long current, long size);

    PageVO<User> getInCondition(User_queryDTO userDTO);

    User userSignIn(Integer id, String phone, String password);


    //新增作者资格申请
    Result addAuthorApply(AuthorApplication authorApplication);

    //审核作者申请
    Result verifyAuthorApply(String id, String userId, Integer type);

    //分页获取作者申请
    PageVO<AuthorApplication> getAuthorApply(long current, long size);
}
